package com.jfire.baseutil.test;

import java.lang.reflect.Array;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.WildcardType;
import java.security.KeyStore.PrivateKeyEntry;
import java.util.ArrayList;
import java.util.List;
import com.jfire.baseutil.annotation.Rename;
import com.jfire.baseutil.reflect.TypeUtil;

public class Demo
{
    
    public static void main(String[] args)
    {
        Type type = new TypeUtil<String[][]>() {}.getType();
        type = new TypeUtil<ArrayList<ArrayList<String>>>() {}.getType();
        System.out.println(type instanceof WildcardType);
        type = new TypeUtil<ArrayList<?>>() {}.getType();
        System.out.println(type);
        System.out.println(((ParameterizedType)type).getActualTypeArguments()[0] instanceof WildcardType);
    }
}
